package com.example.demo.Springmytbatis.mapper;

import com.example.demo.Springmytbatis.model.UserInfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserInfoMapperXML {
    List<UserInfo> selectAll();
    List<UserInfo> selectAll2();

    Integer insertUser(UserInfo userInfo);
    Integer updateUser(String username,Integer id);
    Integer deleteUser(Integer id);
    //开始动态sql的学习
    //学习使用if标签
    Integer insertUserByCondition(UserInfo userInfo);
    List<UserInfo> queryByCondition(UserInfo userInfo);
    Integer updateUserByCondition(UserInfo userInfo);
    void deleteByIds(List<Integer> ids);

    void deleteByIds2(UserInfo userInfo);

    void deleteByIds3(Map<String,Object> params);




}
